package com.feizhoutuobang.shapeline.dao;

import java.util.Date;
import java.util.List;

import com.feizhoutuobang.shapeline.bo.Article;
import com.feizhoutuobang.shapeline.bo.Feed;

public interface ArticleDao {

	Article getArticleByFeedAndUrl(Feed feed, String url);
	
	long getArticleCount(Feed feed, Date beginTime, Date endTime);

	void saveArticle(Article article);

	Article getEarlestArticle(Feed feed, Date beginTime, Date endTime);

	List<Article> getNewArticleOfFeed(Feed feed, Date lastPublishTime, int maxItemCount);
}
